using System.Collections;
using Rdl;

namespace GTame.ReportParser
{

    public class DefaultValueType
    {

        private DataSetReferenceType _DataSetReference;
        private ValuesType _Values;

        public DataSetReferenceType DataSetReference
        {
            get
            {
                if (_DataSetReference == null)
                    _DataSetReference = new DataSetReferenceType();
                return _DataSetReference;
            }
            set
            {
                _DataSetReference = value;
            }
        }

        public ValuesType Values
        {
            get
            {
                if (_Values == null)
                    _Values = new ValuesType();
                return _Values;
            }
            set
            {
                _Values = value;
            }
        }

        public DefaultValueType()
        {
        }

        public DefaultValueType Write()
        {
            DefaultValueType defaultValueType = new DefaultValueType();
            ArrayList arrayList = new ArrayList();
            if (_DataSetReference != null)
                arrayList.Add(_DataSetReference.Write());
            if (_Values != null)
                arrayList.Add(_Values.Write());
            defaultValueType.Items = arrayList.ToArray();
            arrayList = null;
            return defaultValueType;
        }

    } // class DefaultValueType

}

